/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-04-16
 * Time: 15:55
 */
class Singleton{
    private static Singleton instance = null;

    public static Singleton getInstance(){
        return instance;
    }

    private Singleton(){

    }
}

public class demo3 {
    public static void main(String[] args) {
        Singleton t1 = Singleton.getInstance();
        Singleton t2 = Singleton.getInstance();
        System.out.println(t1 == t2);
        //Singleton t3 = new Singleton();

    }
}
